package com.hsh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * excel 模板需要合并的单元格信息
 * </p>
 *
 * @author 黄思海
 * @since 2021-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_excel_merge_cell")
@ApiModel(value="SysExcelMergeCell对象", description="excel 模板需要合并的单元格信息")
public class SysExcelMergeCell implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "pk")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "excel 模板Id")
    private Long excelTemplateId;

    @ApiModelProperty(value = "位置？：？A1:J1 === 左上:右下excel_title 中存储的为左上对应的值，如果与之对应存在就title 对应的这一列为合并单元格列")
    private String cellRangeAddress;

    @ApiModelProperty(value = "第一行索引，Index of first row")
    private Integer firstRow;

    @ApiModelProperty(value = "最后一行索引,Index of last row (inclusive), must be equal to or larger than")
    private Integer lastRow;

    @ApiModelProperty(value = "第一列索引， Index of first column")
    private Integer firstCol;

    @ApiModelProperty(value = "最后一列索引，Index of last column (inclusive), must be equal to or larger than")
    private Integer lastCol;


}
